package com.controller;

import com.service.PushMessageService;
import com.util.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Author：hanll
 * ClassName：BabyMessageController
 * Date：2022/11/11 10:23
 * Version：1.0
 * Description：
 */
@RestController
@RequestMapping("/v1/api/message")
@CrossOrigin
public class BabyMessageController {

    @Resource
    private PushMessageService pushMessageService;

    @GetMapping("/send")
    public Result send() {
        return pushMessageService.orderStatus();
    }

    @GetMapping("/find/message")
    public Result findMessage() {
        return pushMessageService.findMessage();
    }

    @GetMapping("/upd/message")
    public Result updMessage(String xx, String srxx, String jnrxx) {
        return pushMessageService.updMessage(xx, srxx, jnrxx);
    }
}
